var http = require("http");
var url = require("url");
http
  .createServer(function (request, response) {
    response.writeHead(200, { "Content-Type": "text/plain;charset=utf-8" });
    if (request.url !== "/favicon.ico") {
      let query = url.parse(request.url, true).query;
      response.write(`${JSON.stringify(query)}`);
    }
    response.end("Hello 你好");
  })
  .listen(8081);

console.log("Server running at http://127.0.0.1:8081/");
